/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kasgroup1;

import java.util.ArrayList;

/**
 *
 * @author Andrias Højgaard Joensen
 */
public class Hotel {
    private String name;
    private String address;
    private int singleBedPrice;
    private int doubleBedPrice;
    private int accessoriesPrice;        
    private ArrayList<hotelRoom> roomList;
    
/**
 * 
 * @param name
 * @param address
 * @param singleBedPrice
 * @param doubleBedPrice
 * @param accessoriesPrice 
 */
    public Hotel(String name, String address, int singleBedPrice, int doubleBedPrice, int accessoriesPrice)
    {
        this.name = name;
        this.address = address;
        this.singleBedPrice = singleBedPrice;
        this.doubleBedPrice = doubleBedPrice;
        this.accessoriesPrice = accessoriesPrice;
    }
    
    
    public void addHotelRoom(hotelRoom h)
    {
        roomList.add(h);
    }
    /**
     * Returns name of Hotel.
     */
    public String getName()
    {
        return name;
    }
    
    /**
     * Returns price of Hotel.
     * Needs revising, several types of prices, for single & double rooms, accessories etc.
     */
    public String getAllPrices()
    {
        return "Single Bed Price: " + singleBedPrice + " " + "Double Bed Price: " + doubleBedPrice + " " + "Accessories: " + accessoriesPrice;
    }
    
    public int getSingleBedPrice()
    {
        return singleBedPrice;
    }
    
    public int getDoubleBedPrice()
    {
        return doubleBedPrice;
    }
    
    public int getAccessoriesPrice()
    {
        return accessoriesPrice;
    }
    
    /**
     * Returns Hotel address.
     */
    public String getAddress()
    {
        return address;
    }
    
    /**
     * Returns the list of rooms.
     */
    public ArrayList getRoomList()
    {
        return roomList;
    }
    
    public String toString(){
        return name;
    }
}
